
export function throttle (callback, interval) {
  let identify = 0;
  return (...args) => {
    if (identify) return;
    identify = setTimeout(() => identify = 0, interval);
    callback.apply(this, args)
  }
}